package com.zerui.manager.accessrecord.convertor;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.accessrecord.AccessRecord;
import com.zerui.manager.accessrecord.entity.AccessRecordDo;
import com.zerui.manager.accessrecord.entity.AccessRecordExport;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;

/**
 * @Author wh
 * @create_time 2023-08-23 15:28
 */
@Mapper
public interface AccessRecordConvert {

	AccessRecordConvert INSTANCE = Mappers.getMapper(AccessRecordConvert.class);

	Page<AccessRecord> covertAccessRecordDoPageToAccessRecord(Page<AccessRecordDo> accessRecordDos);

	List<AccessRecord> covertAccessRecordDoToAccessRecord(List<AccessRecordDo> accessRecordDos);

	AccessRecordDo covertAccessRecordToAccessRecordDo(AccessRecord accessRecord);

	List<AccessRecordExport> covertAccessRecordDoToAccessRecordExport(List<AccessRecordDo> accessRecordDos);
}
